﻿using Microsoft.ServiceModel.DomainServices.Tools;
using Microsoft.ServiceModel.DomainServices.Tools.TextTemplate;
using Microsoft.ServiceModel.DomainServices.Tools.TextTemplate.CSharpGenerators;

namespace RIABlog.Web.Generators
{
	/// <summary>
	/// Переопределенный кодогенератор
	/// </summary>
	[DomainServiceClientCodeGenerator("RIABlogClientCodeGenerator", "C#")]
	public class RIABlogClientCodeGenerator : CSharpClientCodeGenerator
	{
		/// <summary>
		/// Подменяем генератор клиентских контекстов
		/// </summary>
		protected override DomainContextGenerator DomainContextGenerator
		{
			get { return new RIABlogDomainContextGenerator(); }
		}

		/// <summary>
		/// Подменяем генератор клиентских сущностей
		/// </summary>
		protected override EntityGenerator EntityGenerator
		{
			get
			{
				return new RIABlogEntityGenerator();
			}
		}
	}
}